﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;


namespace WindowsaGame1
{
    class Meteoro : Objeto2D
    {

        //Vector2 mediaCriacao;  vetor com a largura(X) e altura(Y) da tela do jogo 
        Random ran;

        public Meteoro(Texture2D texture, Vector2 mediaCriacao)
            : base(texture)
        {
            ran = new Random();
            posicao = new Vector2(mediaCriacao.X + 50 /*ran.Next((int)mediaCriacao.X)*/, ran.Next((int)mediaCriacao.Y));
        }

        public void Update()
        {
            posicao.X -= 5;
            //alpha -= 0.02f;
        }

        //private function meteoroRandom():void
        //{
			
        //    MC_meteoro = new Meteoro();
        //    MC_meteoro.x = Math.random() * 795;
        //    MC_meteoro.y = -10;
        //    addChild(MC_meteoro);
        //    AR_meteoro.push(MC_meteoro);
			
        //    IN_delayInimigo = 5;
			
        //}
			
	}
}
